﻿using FluentValidation.Attributes;
using Nop.Admin.Validators.Customers;
using Nop.Web.Framework;
using Nop.Web.Framework.Mvc;
using System;
using System.ComponentModel.DataAnnotations;

namespace Nop.Admin.Models.Customers
{
	[Validator(typeof(CustomerInfoVlidator))]
	public class CustomerInfoModel : BaseNopEntityModel
	{
		[NopResourceDisplayName("用户名")]
		public string Username { get; set; }

		[NoTrim]
		[DataType(DataType.Password)]
		[NopResourceDisplayName("Account.ChangePassword.Fields.OldPassword")]
		public string OldPassword { get; set; }

		[NoTrim]
		[DataType(DataType.Password)]
		[NopResourceDisplayName("Account.ChangePassword.Fields.NewPassword")]
		public string NewPassword { get; set; }

		[NoTrim]
		[DataType(DataType.Password)]
		[NopResourceDisplayName("Account.ChangePassword.Fields.ConfirmNewPassword")]
		public string ConfirmNewPassword { get; set; }

		[NopResourceDisplayName("姓名")]
		public string TrueName { get; set; }

		[NopResourceDisplayName("联系方式")]
		public string TelPhone { get; set; }

		[UIHint("DateNullable")]
		[NopResourceDisplayName("出生日期")]
		public DateTime? DateOfBirth { get; set; }

		[NopResourceDisplayName("性别")]
		public string Gender { get; set; }
	}
}